package ModelLayer;


/**
 * Write a description of class Rent here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Rent
{
    // instance variables - replace the example below with your own
    private long id;
    private int rentDate;
    private int dueDate;
    private boolean status;
    private Person p;
    private Copy c;
    private int returnDate;

    /**
     * Constructor for objects of class Rent
     */
    public Rent(long id,Person p, Copy c,int rentDate, int dueDate, boolean status, int returnDate)
    {
        // initialise instance variables
        this.id = id;
        this.rentDate = rentDate;
        this.dueDate = dueDate;
        this.status = status;
        this.p = p;
        this.c = c;
        this.returnDate = 0;
    }

//Get methode
   
    public long getId()
    {
        // put your code here
        return id;
    }
    public int getRentDate()
    {
        return rentDate;
    }
    public int getDueDate()
    {
        return dueDate;
    }
    public boolean getStatus()
    {
        return status;
    }
    public Person getPerson()
    {
        return p;
    }
    public Copy getCopy()
    {
        return c;
    }
    public int getReturnDate()
    {
        return returnDate;
    }
    //Set methode
    
   public void setId(long id)
   {
       this.id = id;
    }
    public void setRentDate(int rentDate)
    {
        this.rentDate = rentDate;
    }
    public void setDueDate(int dueDate)
    {
        this.dueDate = dueDate;
    }
    public void setStatus(boolean status)
    {
        this.status = status;
    }
    public void setPerson(Person p)
    {
        this.p = p;
    }
    public void setCopy(Copy c)
    {
        this.c = c;
    }
    public void setReturnDate(int returnDate)
    {
        this.returnDate = returnDate;
    }
}
